package org.itboys.core.entity.mongo;

import lombok.Data;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * @Author：贾琦磊
 * @Date：2018/11/30
 * @Description：仓库
 */
@Data
@Entity(value = "SundayStore",noClassnameStored = true)
public class SundayStore extends BaseMongoEntity {
    private String name;//实体店名称
    private String image;//实体店图片
    private Long provinceId;//省ID
    private String provinceName;//省名称
    private Long cityId;//市Id
    private String cityName;//市名称
    private Long districtId;//区ID
    private String districtName;//区名称
    private String address;//实体店详细地址
    private Double longitude;// 经度
    private Double latitude;// 维度
    private String desc;//描述
    private String mobile;//联系电话,根据管理员自动生成
    /**项目新加字段*/
    private Long memberId;//管理员id
    private String memberName;//管理员姓名
    private Integer threshold;//库存临界值
     public SundayStore() {
    }

    public SundayStore(String name, String image, Long provinceId, String provinceName, Long cityId, String cityName, Long districtId, String districtName, String address, Double longitude, Double latitude) {
        this.name = name;
        this.image = image;
        this.provinceId = provinceId;
        this.provinceName = provinceName;
        this.cityId = cityId;
        this.cityName = cityName;
        this.districtId = districtId;
        this.districtName = districtName;
        this.address = address;
        this.longitude = longitude;
        this.latitude = latitude;
    }

}
